
let rjk;
let S = {
    isString: e => "string" == typeof e,
    notEmptyString(e) {
        return e && this.isString(e)
    },
    simpleEncode: function (e) {
        if (S.notEmptyString(e)) {
            let t = 0;
            for (let n = 0; n < e.length; n++)
                t = 31 * t + e.charCodeAt(n) | 0;
            return t
        }
        return 0
    }
}
// f = window.navigator.webdriver ? 1 : 0
let f = 0

// 定值
// i = S.getStringFromMultipleCode([120, 50, 51, 49])
let i = 'x231'


function get_rjk(token, user_flag, req_json,time_stamp) {
    // let s = Date.now()
    let s = time_stamp
    // let s = 1744682239763

    // 设备指纹
    // l = felogApi.user_flag
    let l = user_flag

    // 登录 token
    let r = token
    let a = r.length ? 1 : 0
    let u = r.length || 0

    // 请求 json 参数
    let n = req_json
    let c = S.simpleEncode(n)

    let d = [i, S.simpleEncode(String(s)), String(a) + s, c, u, l, f].join(".");
    let rjk = d + "." + d.length
    return rjk
}

token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJyZWFnZW50IiwiaWF0IjoxNzQ0NjQzNjA0LCJzdWIiOiI1MzU5MzIyMzcwNzQ0MDc0MjkiLCJleHAiOjE3NDQ2ODY4MDQsInVzZXJfbmFtZSI6IjUzNTkzMjIzNzA3NDQwNzQyOSIsImF0X2lkIjoiNzZDMkFCNTg2ODE5NjM0ZGNjMTEwMjY3MDg5MDMiLCJjbGllbnRfaWQiOiJ3ZWJhcHAiLCJ1cyI6MiwidXQiOjQsInN1cHBJZCI6MTE1NDM2fQ.8LgvrtNA5pAQjjcNOuwfnETEOfniBBPO9IaROs79rhI";
user_flag="a7972d02f05a438cb1fc482d7da1605d";
req_json='{"current":1,"size":10,"status":""}';
console.log(get_rjk(token,user_flag,req_json));
